package com.lottery.game.controller.v2.register.request;

import com.lottery.game.common.BaseObject;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description="发送手机短信验证码请求")
public class SendMessageRequest extends BaseObject {

	@ApiModelProperty(value = "phone", name = "手机号", required = true)
	@NotEmpty(message = "手机号不能为空")
	@Pattern(regexp="^((13[0-9])|(17[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$", message="手机号格式不正确")
	private String phone;

}
